import { MockAdapter } from '@/mock/mock-adapter';
const mock = MockAdapter.getInstance();

import Mock from 'mockjs'
const Random = Mock.Random;

// 获取应用数据
mock.onGet('v7/defaultappmenu').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status, {
        name: 'appmenu',
        items:  [
            {
	id: '7A30FE40-93BB-4EBF-BB6C-FD8CE7B8E286',
	name: 'menuitem1',
	text: '用户信息',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '用户信息',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: '_5',
	resourcetag: '',
},
            {
	id: '0C4AF3D0-71C2-4D61-A95E-90923CD02BA4',
	name: 'menuitem9',
	text: '申请（常规）',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '申请（常规）',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: '_2',
	resourcetag: '',
},
            {
	id: 'DE236270-0F3F-4FB5-AEA9-99E90108B091',
	name: 'menuitem3',
	text: '组长审批',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '组长审批',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: '_4',
	resourcetag: '',
},
            {
	id: '8FAD49E2-5CD2-4ED0-8F5F-32EEC3E11714',
	name: 'menuitem4',
	text: '领导审批',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '领导审批',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: '_3',
	resourcetag: '',
},
            {
	id: '8FD9F12F-8A6E-41BE-B5A4-916A32061B64',
	name: 'menuitem5',
	text: '人事备案',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '人事备案',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: '_7',
	resourcetag: '',
},
            {
	id: '7669BFC0-AFCB-48E4-92E7-A13808A49A88',
	name: 'menuitem6',
	text: '组长审批（表单）',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '组长审批（表单）',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: '_6',
	resourcetag: '',
},
            {
	id: 'CCC5D46F-5A41-48D7-A201-5A803AE0C1D6',
	name: 'menuitem7',
	text: '领导审批（表单）',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '领导审批（表单）',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: '_9',
	resourcetag: '',
},
            {
	id: '5F0D7330-6303-4FE0-B889-2C2D1E125097',
	name: 'menuitem8',
	text: '人事备案（表单）',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '人事备案（表单）',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: '_8',
	resourcetag: '',
},
        ],
    }];
});

